<#include "_layout.html"/> 
<@layout>

<div class="container margin-bottom">
	<div class="col-sm-4">
		<h2>用户注册</h2>
		<form method="post"  action="${CPATH}/user/doRegister">
			<input type="hidden" name="goto" value="${goto!}">
			<div class="form-group">
				<input type="text" name="username" class="form-control" required="required" placeholder="用户名">
			</div>
			<div class="form-group">
				<input type="text" name="email" class="form-control" required="required" placeholder="邮箱">
			</div>
			<div class="form-group">
				<input type="password" name="password" class="form-control" required="required" placeholder="密码">
			</div>
			<div class="form-group">
				<input type="password" name="confirm_password" class="form-control" required="required" placeholder="确认密码">
			</div>
			<div class="form-group">
				<input type="text" name="_register_captcha" class="form-control" required="required" placeholder="验证码">
			</div>
			<div class="form-group">
				<img cdn-exclude src="${CPATH}/captcha" onclick="this.src='${CPATH}/captcha?d='+Math.random();" >
			</div>
			<div class="form-group">
				<input type="submit" class="btn btn-submit" value="注册">
			</div>
			<div class="form-group">
				<ul class="nav nav-pills">
					<li><a href="${CPATH}/oauth/weibo?goto=${goto!}"><i class="fa fa-weibo"></i>微博登录</a></li>
					<li><a href="${CPATH}/oauth/github?goto=${goto!}"><i class="fa fa-github"></i>github登录</a></li>
				</ul>
			</div>
		</form>
	</div>
</div>
</@layout>